<%@ page import="com.atguigu.pojo.Person" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %><%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2022/2/12
  Time: 20:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        Person person = new Person();
        person.setName("谢应鹏");
        person.setPhones(new String[]{"134131414","25415141414","902860801"});
        List<String> cities = new ArrayList<String>();
        cities.add("北京");
        cities.add("云南");
        cities.add("镇雄");
        person.setCities(cities);
        Map<String ,Object>map=new HashMap<>();
        map.put("a.a.a","value1");
        map.put("key2","value2");
        map.put("key3","value3");
        person.setMap(map);
        pageContext.setAttribute("person",person);
        request.setAttribute("emptyNull",null);
    %>
         输出Person:${person}<br>
         输出Persion的name属性：${person.name}<br>
         输出Persion的phones属性:${person.phones[0]}<br>
         输出Persion的Map集合中某个key的值：${person.map.key3}
         ${empty emptyNull}
         ${12==12 ? "谢应鹏好":"谢应鹏帅哥"}
         ${map['a.a.a']}
</body>
</html>
